package server.service;

import annotation.RpcService;
import service.HelloService;

/**
 * @author David
 */

@RpcService
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String msg) {
        // 用来测试错误是否可以远程传递
        int i = 1 / 3;
        return "你好, 使用RPC调用成功！" + msg;
    }

    @Override
    public String sayGoodBye(String msg) {
        return "再见，" + msg;
    }
}
